[paket]
tanim   = Verimliliğe odaklanan Firefox tabanlı açık kaynaklı web tarayıcısı.
paketci = Cihan_Alkan
grup 	= İnternet
url     = https://www.palemoon.org/

[gerek]
derleme = 
calisma = 

[kaynak]
git      = https://repo.palemoon.org/MoonchildProductions/Pale-Moon
git      = https://repo.palemoon.org/MoonchildProductions/UXP
1= https://aur.archlinux.org/cgit/aur.git/plain/mozconfig.in?h=palemoon-gtk3
#2= https://addons.palemoon.org/?component=download&id=langpack-tr@palemoon.org&version=29.1.0
2= https://notabug.org/aylinux/ceviriler/raw/master/palemoon-langpack-tr-29.1.0.xpi

[sha512]
#1       = 5ef28334ecb7effaaf597ea3efe0406af62419e6fa629e835d843161ab8d83515626ec0f0495c4cc66af9e5669398ac96c16ca626e4965a9831e1704c995fb09

[derle]
betik   = sed 's#%SRCDIR%#'"${SRC}"'#g' /sources/mozconfig.in?h=palemoon-gtk3 > mozconfig
betik   = cd Pale-Moon
betik   = git submodule init
betik   = git config submodule.platform.url "${SRC}/UXP"
betik   = git submodule update
betik   = export MOZBUILD_STATE_PATH="${SRC}/mozbuild"
betik   = export MOZCONFIG="${SRC}/mozconfig"
betik   = export CPPFLAGS="${CPPFLAGS} -O2 -Wno-format-overflow"
betik   = ./mach build
	      
[pakur]
betik   = cd pmbuild
betik   = make package
betik   = cd dist
betik   = install -d "${PKG}"/usr/{bin,lib}
betik   = cp -r palemoon/ "${PKG}/usr/lib/palemoon"
betik   = ln -s "../lib/palemoon/palemoon" "${PKG}/usr/bin/palemoon"
betik   = install -Dm644 palemoon/browser/chrome/icons/default/default16.png "${PKG}/usr/share/icons/hicolor/16x16/apps/palemoon.png"
betik   = install -Dm644 palemoon/browser/chrome/icons/default/default32.png "${PKG}/usr/share/icons/hicolor/32x32/apps/palemoon.png" "${PKG}/usr/share/icons/hicolor/48x48/apps/palemoon.png"
betik   = install -Dm644 palemoon/browser/icons/mozicon128.png "${PKG}/usr/share/icons/hicolor/128x128/apps/palemoon.png"
betik   = install -Dm644 "${SRC}/Pale-Moon/palemoon/branding/official/palemoon.desktop" "${PKG}/usr/share/applications/palemoon.desktop"
betik   = install -m 755 -d "${PKG}/usr/lib/palemoon/browser/extensions"
betik   = install -m 644 /sources/palemoon-langpack-tr-29.1.0.xpi "${PKG}/usr/lib/palemoon/browser/extensions/langpack-tr@palemoon.org.xpi"
